<?php

namespace App\Kuafu\Coupon\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CouponCodeEnum extends BaseCodeEnum
{
    const ERR_COUPON_PARAM_VALID           = 417001;
    const ERR_COUPON_DB_ADD                = 417002;
    const ERR_COUPON_DB_SET                = 417003;
    const ERR_COUPON_DB_DEL                = 417004;
    const ERR_COUPON_DB_PATCH              = 417005;
    const ERR_COUPON_ID_NOT_EXIST          = 417006;
    const ERR_COUPON_PRODUCT_NOT_EXIST     = 417007;
    const ERR_POS_USE_COUPON_SOURCE        = 417009;
    const ERR_POS_USE_COUPON_SUPERPOSITION = 417010;
    const ERR_POS_USE_COUPON_USE_MAX       = 417011;
    const ERR_POS_USE_COUPON_SHOP          = 417012;
    const ERR_POS_USE_COUPON_PRODUCT       = 417013;
    const ERR_POS_USE_COUPON_DATE          = 417014;
    const ERR_POS_USE_COUPON_TIME          = 417015;
    const ERR_POS_USE_COUPON_MONEY         = 417016;
    const ERR_POS_USE_COUPON               = 417017;
    const ERR_POS_USE_COUPON_ACTIVITY      = 417018;
    const ERR_POS_USE_NOT_IN_EFFECTIVE     = 417019;
    const ERR_POS_CHECK_COUPON_ERROR       = 417020;

    const CODE_TEXT = [
        self::ERR_COUPON_PARAM_VALID           => "参数校验错误",
        self::ERR_COUPON_DB_ADD                => "新增失败",
        self::ERR_COUPON_DB_SET                => "编辑失败",
        self::ERR_COUPON_DB_DEL                => "删除失败",
        self::ERR_COUPON_DB_PATCH              => "上下架失败",
        self::ERR_COUPON_ID_NOT_EXIST          => "ID记录不存在",
        self::ERR_COUPON_PRODUCT_NOT_EXIST     => "商品券对应商品不存在",
        self::ERR_POS_USE_COUPON_SOURCE        => "不可在该平台使用",
        self::ERR_POS_USE_COUPON_SUPERPOSITION => "不可与其他优惠券叠加",
        self::ERR_POS_USE_COUPON_USE_MAX       => "超过最大使用张数限制",
        self::ERR_POS_USE_COUPON_SHOP          => "店铺不在使用范围内",
        self::ERR_POS_USE_COUPON_PRODUCT       => "购买商品不可使用该优惠券",
        self::ERR_POS_USE_COUPON_DATE          => "不在使用日期内",
        self::ERR_POS_USE_COUPON_TIME          => "不在使用时间内",
        self::ERR_POS_USE_COUPON_MONEY         => "金额不满足券使用条件",
        self::ERR_POS_USE_COUPON               => "优惠券使用非法",
        self::ERR_POS_USE_COUPON_ACTIVITY      => "活动不可叠加",
        self::ERR_POS_USE_NOT_IN_EFFECTIVE     => "优惠券不在有效期范围内",
        self::ERR_POS_CHECK_COUPON_ERROR       => '优惠券信息有误'
    ];
}
